import request from '@/utils/request.js'

export function getToken (data) {
  return request({
    url: 'oauth/token',
    method: 'post',
    data
  })
}
export function getHome () {
  return request({
    url: 'mobile/homepage/json'
  })
}
export function getHomeRecommend (query) {
  return request({
    url: `mobile/goods/list/paged?pageIndex=${query.pageIndex}&pageSize=${query.pageSize}`,
    query
  })
}
